﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001141 RID: 4417
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SetCurInteractEntityCsReq : IMessage<SetCurInteractEntityCsReq>, IMessage, IEquatable<SetCurInteractEntityCsReq>, IDeepCloneable<SetCurInteractEntityCsReq>, IBufferMessage
	{
		// Token: 0x170037EF RID: 14319
		// (get) Token: 0x0600C5B2 RID: 50610 RVA: 0x00216098 File Offset: 0x00214298
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SetCurInteractEntityCsReq> Parser
		{
			get
			{
				return SetCurInteractEntityCsReq._parser;
			}
		}

		// Token: 0x170037F0 RID: 14320
		// (get) Token: 0x0600C5B3 RID: 50611 RVA: 0x0021609F File Offset: 0x0021429F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SetCurInteractEntityCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170037F1 RID: 14321
		// (get) Token: 0x0600C5B4 RID: 50612 RVA: 0x002160B1 File Offset: 0x002142B1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SetCurInteractEntityCsReq.Descriptor;
			}
		}

		// Token: 0x0600C5B5 RID: 50613 RVA: 0x002160B8 File Offset: 0x002142B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetCurInteractEntityCsReq()
		{
		}

		// Token: 0x0600C5B6 RID: 50614 RVA: 0x002160C0 File Offset: 0x002142C0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetCurInteractEntityCsReq(SetCurInteractEntityCsReq other) : this()
		{
			this.entityId_ = other.entityId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600C5B7 RID: 50615 RVA: 0x002160E5 File Offset: 0x002142E5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetCurInteractEntityCsReq Clone()
		{
			return new SetCurInteractEntityCsReq(this);
		}

		// Token: 0x170037F2 RID: 14322
		// (get) Token: 0x0600C5B8 RID: 50616 RVA: 0x002160ED File Offset: 0x002142ED
		// (set) Token: 0x0600C5B9 RID: 50617 RVA: 0x002160F5 File Offset: 0x002142F5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint EntityId
		{
			get
			{
				return this.entityId_;
			}
			set
			{
				this.entityId_ = value;
			}
		}

		// Token: 0x0600C5BA RID: 50618 RVA: 0x002160FE File Offset: 0x002142FE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SetCurInteractEntityCsReq);
		}

		// Token: 0x0600C5BB RID: 50619 RVA: 0x0021610C File Offset: 0x0021430C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SetCurInteractEntityCsReq other)
		{
			return other != null && (other == this || (this.EntityId == other.EntityId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600C5BC RID: 50620 RVA: 0x0021613C File Offset: 0x0021433C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.EntityId != 0U)
			{
				num ^= this.EntityId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600C5BD RID: 50621 RVA: 0x0021617B File Offset: 0x0021437B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600C5BE RID: 50622 RVA: 0x00216183 File Offset: 0x00214383
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600C5BF RID: 50623 RVA: 0x0021618C File Offset: 0x0021438C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.EntityId != 0U)
			{
				output.WriteRawTag(56);
				output.WriteUInt32(this.EntityId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600C5C0 RID: 50624 RVA: 0x002161C0 File Offset: 0x002143C0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.EntityId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.EntityId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600C5C1 RID: 50625 RVA: 0x002161FE File Offset: 0x002143FE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SetCurInteractEntityCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.EntityId != 0U)
			{
				this.EntityId = other.EntityId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600C5C2 RID: 50626 RVA: 0x0021622F File Offset: 0x0021442F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600C5C3 RID: 50627 RVA: 0x00216238 File Offset: 0x00214438
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 56U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.EntityId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04004F9F RID: 20383
		private static readonly MessageParser<SetCurInteractEntityCsReq> _parser = new MessageParser<SetCurInteractEntityCsReq>(() => new SetCurInteractEntityCsReq());

		// Token: 0x04004FA0 RID: 20384
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004FA1 RID: 20385
		public const int EntityIdFieldNumber = 7;

		// Token: 0x04004FA2 RID: 20386
		private uint entityId_;
	}
}
